/**
 * crawler-base
 *
 * outlook@China software studio
 * Copyright (c) 2008-2011. All Rights Reserved.
 * http://www.outlook.com
 */

package org.outlook.crawler.client.pojo;

import java.io.Serializable;

import org.outlook.crawler.client.exception.EvaluateException;


/**
 * function:
 * @author watson  email: watson.wu@hotmail.com
 * @date 2011-4-26
 */
public class Webinfo implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private String htmlSource;
	private String url;
	
	private String contentType;
	
	private int status;

	public Webinfo(String htmlSource, int status) throws EvaluateException {
		super();
		this.htmlSource = htmlSource;
		final String statusText = HttpStatus.getStatusText(status);
		if(null == statusText || "".equals(statusText))
			throw new EvaluateException("");
		this.status = status;
	}

	public String getHtmlSource() {
		return htmlSource;
	}

	public void setHtmlSource(String htmlSource) {
		this.htmlSource = htmlSource;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}
